<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <p:fieldset legend="Simple Fieldset" toggleable="true">
            <f:facet name="legend">
                Ok, here comes the legend...
            </f:facet>
            
            <h:panelGrid columns="2">
            <p:graphicImage value="/IMG/photo2.jpg" />
                <h:outputText value="The story begins as with a nice girl ..." />
            </h:panelGrid>
        </p:fieldset>
        
        <p:growl id="messages" />
        <p:fieldset legend="Toggleable Fieldset" toggleable="true">
            <p:ajax event="toggle" listener="#{fieldsetView.handleToggle}" update="messages" />
            Here is some content...
        </p:fieldset>
    </h:body>
</html>
